<?php
namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Msgs;
use App\Models\Users;
use GuzzleHttp\Exception\RequestException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;

class CustomController extends Controller
{


    /**
     * 客服消息
     * @return \Illuminate\Http\JsonResponse
     */
    public function index(){
        try {
            $lists  = Msgs::orderBy('created_at','DESC')
                ->paginate(10);
            return $this->returnJson(0, '',$lists);
        } catch (\Exception $e) {
            return $this->returnJson(1, '网络超时，请刷新再试');
        }

    }

}